<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
  .container{
    display: inline-block;
    background: #000;
    color: #fff;
  }
  .item{
    display: inline-block;
  }
  .item-1{
    line-height: 20px;
    border: 1px solid red;
  }
  .item-2{
    border: 1px solid yellow;
  }
  .item-3{
    border: 1px solid green;
  }
  .item-4{
    border: 1px solid blue;
  }
  </style>
</head>
<body>
  <div class="container">
    <div class="item item-1">AaJjYy</div>
    <div class="item item-2">1234567890</div>
    <div class="item item-3">瞅啥呢</div>
    <div class="item item-4">a1阿大</div>
  </div>
</body>
</html>